package com.cuit.springboot.util;

public enum ResponseCode {
	SUCCESS(0,"请求成功"),
    NEED_LOGIN(-1,"访问未授权"),
    RUNTIME_ERROR(-2,"运行时错误"),
    ERROR(1,"请求失败"),
    ILLEGAL_ARGUMENT(2,"参数错误");

    private  final int status;
    private  final  String info;

    ResponseCode(int code,String desc){
        this.status=code;
        this.info=desc;
    }

    public  int getStatus(){
        return  status;
    }
    public  String getInfo(){
        return info;
    }
}
